﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace Odyssey.Controls
{
    /// <summary>
    ///     Provides a way to choose a System.Windows.DataTemplate based on the data
    ///     object and the data-bound element.
    /// </summary>
    public abstract class DataTemplateSelector
    {
        /// <summary>
        /// When overridden in a derived class, returns a System.Windows.DataTemplate
        ///  based on custom logic.
        /// </summary>
        /// <param name="item">The data object for which to select the template.</param>
        /// <param name="container">The data-bound object.</param>
        /// <returns>Returns a System.Windows.DataTemplate or null. The default value is null.</returns>
        public abstract DataTemplate SelectTemplate(object item, DependencyObject container);
    }
}
